/**
 * @module navigator页面操作
 */

import { IFeidaoAiMobile } from '@dfeidao/atom-mobile/interfaces';

/**
 * 获取当前页面的key
 * @param fd: IFeidaoAiMobile;	// 系统参数
 * @see [api](https://dfeidao.gitee.io/atom-nodejs/modules/navigator____.html)
 * @example
 * ```ts
 * import get_page_key from '@dfeidao/atom-mobile/navigator/get-page-key';
 * const key = get_page_key();
 * ```
 */

export default function get_page_key(fd: IFeidaoAiMobile) {
	return fd.page.props.navigation.state.key;
}
